package cn.liccshop.sys.config;

import com.alibaba.druid.pool.DruidDataSource;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @program: LiCCShop
 * @description: 自定义配置类
 * @author: LiCC
 * @data 2019-02-15-21:28
 */
@Configuration
public class MySystemConfiguration {

    /**
     * @description 使用Druid作为数据库连接池
     * @return
     */
//    @Bean
//    @ConfigurationProperties(prefix = "spring.datasource")
//    public DataSource druidDataSource(){
//        DruidDataSource dataSource = new DruidDataSource();
//        return dataSource;
//    }

//    /**
//     * @description 采用分页插件
//     * @return
//     */
//    @Bean
//    public PaginationInterceptor paginationInterceptor(){
//        return new PaginationInterceptor();
//    }
}
